<template>
    <div class="m-style have-nav">
        <div>
            <m_pageList
                ref="pageList"
                :url="url"
                :cols="cols"
                :list-cond="listCond"
            >
                <template v-slot="scope">
                    <strong>{{ scope.row.number }}</strong>
                </template>
            </m_pageList>

        </div>

    </div>
</template>

<script>
import m_pageList from "@/uitl/m_pageList";
import {API_URL} from "@/config/urlInfo";

export default {
    name: "transferList",
    props: ["ledgerId"],
    components: {
        m_pageList,
    },
    data() {
        return {
            number: "",
            url: API_URL.aloneLedgerTransfer,
            cols: {
                show: [
                    {title: '设备名称', field: 'name'},
                    {title: '品牌', field: 'brand'},
                    {title: '调出部门', field: 'oldDep'},
                    {title: '原使用人', field: 'person'},
                ],
                hide: [
                    {title: '原责任人', field: 'responsible'},
                    {title: '调入部门', field: 'depName'},
                    {title: '调拨时间', field: 'tranDate'},
                    {title: '现使用人', field: 'currentUser'},
                    {title: '调拨费用', field: 'transferCosts'},
                    {title: '现责任人', field: 'personCharge'},
                    {title: '调拨经手人', field: 'transferHandlers'},
                    {title: '调拨工时', field: 'workingHours'},
                    {title: '现存放位置', field: 'currentLocation'},
                    {title: '调拨前状态', field: 'oldType'},
                    {title: '调拨后状态', field: 'type'},
                ]
            },
            show: true,
            loading: false,
            listCond: {ledgerId: this.$route.query.id}
        }
    },
}
</script>

<style scoped>

</style>